package Control;

import GameControl.GameControl;
import java.io.Serializable;

/**
 * Class <code>Stepdown</code> instances represent game stepping commands.
 * @author Dimon
 */
public class Stepdown extends Command implements Serializable {

    /**
     * Creates new step down command.
     */
    public Stepdown() {
        Debug("created " + toString());
    }

    /**
     * Steps down the game.
     */
    @Override
    public synchronized void perform() {
        GameControl.GameStepdown();
    }

    /**
     * Describes command.
     * @return command description
     */
    @Override
    public String toString() {
        return "Step Down " + super.toString();
    }
}
